/**
* @file Simulator.h in SimulateLPS
* @author rebeater
* @comment
* Create on 3/22/22 10:58 PM
* @version 1.0
**/

#ifndef SIMULATELPS__SIMULATOR_H_
#define SIMULATELPS__SIMULATOR_H_
#include "QSerialPort"
class Simulator {
 public:
  Simulator();
  explicit Simulator(const QSerialPortInfo &info);
  ~Simulator();
   bool SerialOutput(char * data,int size) const;
  QSerialPort::SerialPortError GetError() const;
 protected:
  void SetSerialPortInfo(const QSerialPortInfo &info);
 private:
  QSerialPort *serial_;
};

#endif //SIMULATELPS__SIMULATOR_H_
